/*
========================================================================
 Name        : OrderListBox.h
 Author      : shitou
 Copyright   : Your copyright notice
 Description : 
========================================================================
*/
#ifndef ORDERLISTBOX_H
#define ORDERLISTBOX_H

#include <coecntrl.h>		
#include "TaobaoListPage.h"
#include "ListContainer.h"

class MEikCommandObserver;		

class COrderListBox : public CListContainer
	{
public:
	// constructors and destructor
	COrderListBox();
	virtual ~COrderListBox();
    static COrderListBox* NewL( 
        const TRect& aRect, 
        const CCoeControl* aParent, 
        MEikCommandObserver* aCommandObserver );
    static COrderListBox* NewLC( 
        const TRect& aRect, 
        const CCoeControl* aParent, 
        MEikCommandObserver* aCommandObserver );
    
public:
   // from base class MControlEventObserver
    void HandleControlEventL(CCoeControl* aControl,TEventType aEventType);
    
public: 
	void AddItemFromPageL(CTaobaoListPage* aPage);
	TInt CurrentItemIndex();
	
private:
	void setCbaL();
    void AddListBitmapsL();
    void AddListItemsL();
    
	};
				
#endif // ORDERLISTBOX_H
